import { postMethod, getMethod } from "../../../utils/http";

export async function getList(schoolId) {
    return await postMethod(`xyxy/wxapp/web/banner/list?schoolId=${schoolId}&location=首页`, {});
}
export async function getSchoolList() {
    return await postMethod(`xyxy/wxapp/web/school/list`, {});
}


export async function add(data = {}) {
    return await postMethod(`xyxy/wxapp/web/banner/save`, {
        params: {
            location:'首页',
            ...data,
        }
    });
}

export async function queryItem(id) {
    return await postMethod(`xyxy/wxapp/web/banner/detail?id=${id}`, {});
}

export async function edit(data) {
    return await postMethod(`xyxy/wxapp/web/banner/edit`, {
        params: {
            ...data,
        }
    });
}

export async function del(id) {
    return await postMethod(`xyxy/wxapp/web/banner/del?id=${id}`, {

    });
}

// 

